package com.pigs.pigsordersystem.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

/**
 * @author Y.yang
 * @since 2020-03-14
 * 客户收货地址
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@TableName("site")
public class SiteEntity extends BaseEntity {

    /**
     * 收货地址
     */
    private String siteAddress;

    /**
     * 详情地址
     */
    private String particularsAddress;

    /**
     * 用户id
     */
    private Integer usersId;

    /**
     * 客户手机号码
     */
    private String phone;


    @Override
    public String toString() {
        return "SiteEntity{" +
                "Id=" + super.getId() +
                ",siteAddress='" + siteAddress + '\'' +
                ",phone='" + phone + '\'' +
                ", particularsAddress='" + particularsAddress + '\'' +
                ", usersId=" + usersId +
                '}';
    }
}
